<template>
  <div>
    <Navbar :navtitle="titles"></Navbar>
    <div class="fiesxdall"></div>
    <textarea placeholder="请输入"  class="text" v-model="shopNames">
             </textarea>
     <div class="save" @click="postnick()">保存</div>
  </div>
</template>

<script>
import Navbar from '@/components/Navbar'
import qs from 'qs'
export default {
     components:{
        Navbar
    },
data(){
  return{
    titles:"微店介绍",
    shopNames:""
  }
},
created(){
},
     methods:{
              postnick(){
                  this.$http
        .post(
          "https://web-gateway.newbeescm.com/ms-web/shopInfoController/updateShopInfoById",
{
                contactsName:this.$route.query.contactsName,
                contactsPhone:this.$route.query.contactsPhone,
                id:this.$route.query.id,
                remark:this.shopNames,
                shopName:this.$route.query.shopNames,
},
          {
            headers: {
              token: this.$store.state.token,
              userId: this.$store.state.userInfo.id
            }
          }
        ).then(res => {
          console.log(res);
          this.$router.go(-1);
        })
              }
     },
     mounted(){
  //  this.postnick();
     }
}

</script>
<style lang="scss" scoped>
.fiesxdall{
    position: fixed;
    width: 100%;
    height: 100%;
    background: #F1F2F3;
    z-index: -100;
}
.save{
  color: white ;
  font-size: 0.15rem;
  height: 0.4rem;
  width: 90%;
  background: #DD3333;
  margin:0.3rem auto;
  z-index: 22222;
  display: flex;
  align-items: center;
  justify-content: center;
}
.text{
  height: 1rem;
  width: 95%;
  display: inline-block;
  margin-top:0.06rem;
  outline: none;
  border: 1px solid transparent;
  padding-left: 0.15rem;
}
</style>
